package com.example.ioc.environmentpostProcessor;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.env.EnvironmentPostProcessor;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * Description
 *
 * @author tcwong
 * @date 2022/7/24
 * Since 1.8
 */
@Configuration
public class DefaultEnvironmentPostProcessor implements EnvironmentPostProcessor {

    private  ConfigurableEnvironment defaultEnvironment;
    @Override
    public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) {
        defaultEnvironment = environment;
    }
}
